<?php

// +----------------------------------------------------------------------
// | TAODUDU.COM  [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016 http://www.taodudu.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: ubten <462193409@qq.com> http://www.ubten.com/
// +----------------------------------------------------------------------

//查询真实销量

function goodsRealsale($goods_id){
    $map['goods_id'] = $goods_id;
    $count = M('order_goods')->where($map)->count('goods_num');
    return $count;
}
